package com.yaoq.proxy.interceptor;

import java.lang.reflect.Method;

/**
 * @ClassName Inteeceptor
 * @Description TODO
 * @Author yaoqiang
 * @Date 2020/9/2 9:40
 * @Version 1.0
 */
public interface Interceptor {
    /**
     * 拦截器before()
     *
     * @param proxy  代理对象
     * @param target 真实对象
     * @param method 方法
     * @param args   参数
     * @return
     */
    public boolean before(Object proxy, Object target, Method method, Object[] args);

    public void around(Object proxy, Object target, Method method, Object[] args);

    public void after(Object proxy, Object target, Method method, Object[] args);

}
